﻿using A.M.ETO;
using A.M.Storage.I_Application;
using AutoMapper;
using DotNetCore.CAP;
using Q.M.Finance.Domain.DTO;
using Q.M.Finance.Domain.Entity;
using Q.M.Finance.Infrastruecure.IRepository;
using Q.M.Finance.Infrastruecure.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Q.M.Finance.Application.IServices
{
    public interface IExpenditureServices : IBaseServices<expenditure, string>
    {
        /// <summary>
        /// 添加支出管理
        /// </summary>
        /// <param name="expenditureAddDTO"></param>
        /// <returns></returns>
        Task<ApiReturn<string>> GetexpenditureAddInfo(expenditureAddDTO expenditureAddDTO);
        /// <summary>
        /// 修改支出管理
        /// </summary>
        /// <param name="expenditureShowDTO"></param>
        /// <returns></returns>
        Task<ApiReturn<string>> GetexpenditureUpdateInfo(expenditureShowDTO expenditureShowDTO);

        /// <summary>
        /// 反填支出管理
        /// </summary>
        /// <param name="invoiceid"></param>
        /// <returns></returns>
        Task<expenditure> FindexpenditureInfo(string? invoiceid);

        /// <summary>
        /// 删除支出管理
        /// </summary>
        /// <param name="invoiceid"></param>
        /// <returns></returns>
        Task<ApiReturn<string>> Deleteexpenditure(string? invoiceid);

        /// <summary>
        /// 支出管理显示+分页+查询
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        PageETO<expenditureShowDTO> GetexpenditureInfo(string? invoiceid, int pageIndex, int pageSize);



    }
}
